﻿@{
    ViewBag.Title = "DepartInfoShow";
    Layout = "~/Views/Shared/_ViewMenu.cshtml";
}
@using ZX.HIS.Model;
@using ZX.HIS.Common;
@{
    PageClass<ZX.HIS.Model.DepartInfo> list = Model as PageClass<ZX.HIS.Model.DepartInfo>;
}
<div id="urHere">DouPHP 管理中心<b>&gt;</b><strong>挂号信息</strong> </div>
<div style="width:100%">
    <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">


        <h3><a href="/DepartInfo/Index" class="actionBtn add">科室添加</a>科室显示</h3>
        <div>
            <div class="filter">
                <form action="/DepartInfo/DepartInfoShow" method="post">
                    名称:<input id="Text1" type="text" class="inpMain" name="DepartName" />
                    <input id="Submit1" type="submit" class="btnGray" value="查询" />
                </form>
             
            </div>
            <table width="100%" class="table table-bordered  tableBasic">
                <thead>
                    <tr>
                        <th>科室名称</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    @foreach (var item in list.PageList)
                    {
                        <tr>
                            <td>@item.DepartName</td>
                            <td><a href="/DepartInfo/DepartInfoDelById/@item.DepartId">删除</a> | <a href="/DepartInfo/DepartInfoUpd?id=@item.DepartId">修改</a></td>
                        </tr>
                }
                </tbody>
            </table>
            <div class="pager">
                总 页 数：共<span>@Model.PageCount</span> 页  |
                当 前 索 引：第<span>@Model.PageIndex</span> 页   | <a href="/DepartInfo/page/@(1)">首页</a>
                @if (Model.PageIndex <= 1)
                {
                    <a>上一页</a>
                }
                else
                {
                    <a href="/DepartInfo/page/@(Model.PageIndex - 1)">上一页</a>
                }
                @if (Model.PageIndex >= Model.PageCount)
                {
                    <a>下一页</a>
                }
                else
                {
                    <a href="/DepartInfo/page/@(Model.PageIndex + 1)">下一页</a>
                }
                <a href="/DepartInfo/page/@(Model.PageCount)">尾页</a>
            </div>

        
        </div>

    </div>

</div>